package com.dq.controller.in;

import com.dq.domain.sys.user.Account;
import com.dq.domain.sys.user.user.centre.UserCard;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

/**
 * @Author luchangtong
 * @Date 2020/4/14 9:42
 */
@Data
public class RechargeCardRequest {
    public Long id;
    @ApiModelProperty("类型, 积分卡/次数卡")
    @NotNull(message = "请选择卡类型")
    public UserCard.CardType cardType;
    @NotNull(message = "请选择用户")
    public Long wxUserId;
    @NotNull(message = "请选择员工")
    public Long staffUserId;
    @ApiModelProperty(value = "剩余充值总金额")
    protected BigDecimal price;
    @ApiModelProperty(value = "剩余赠送总金额")
    protected BigDecimal givePrice;
    @NotNull(message = "请选择门店")
    public Long orgId;
    @ApiModelProperty(value = "0为积分卡 1为需要绑定项目")
    public Long flag;
    public Long serviceProjectId;
    @ApiModelProperty(value = "剩余充值总次数")
    public Long count;
    @ApiModelProperty(value = "剩余赠送总次数")
    public Long giveCount;
    public Account.RechargeType rechargeType;
}
